#!/usr/bin/python3
# encoding= utf-8
# @Copyright (c) Huawei Technologies Co., Ltd. 2024-2025. All rights reserved.
# Licensed under the Apache-2.0 License. See LICENSE file for details.
import locale
import os
from pathlib import Path
from ci import main
from config import ArgConfig


if __name__ == '__main__':
    cof = ArgConfig()
    cof.BUILD_TYPE = "ci_test"
    cof.BASE_DIR = os.path.join(os.getcwd(), 'ci_test')
    cof.HOME_DIR = os.getcwd()
    cof.LIB_DIR = None
    cof.TEST_DIR = os.path.join(os.getcwd(), 'test')
    cof.ENCODING = locale.getpreferredencoding(False) # ('en_US', 'UTF-8')
    cof.FILE_ROOT = os.path.join(Path(__file__).parent.absolute())
    cof.HOME = Path(__file__).parent.absolute()
    cof.CANGJIE_SOURCE_DIR = os.path.join(cof.HOME_DIR, 'src')
    cof.CI_TEST_DIR = os.path.join(cof.HOME_DIR, 'ci_test')
    cof.UT_TEST_DIR = os.path.join(cof.TEST_DIR, 'UT')
    main(cof)
